Skip to content

Context-form retrofit (batch 6): dmss (6 functions)#911

Merged
abrignoni merged 1 commit into
mainfrom
context-retrofit-batch6
Jun 24, 2026
Merged

Context-form retrofit (batch 6): dmss (6 functions)#911
abrignoni merged 1 commit into
mainfrom
context-retrofit-batch6

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Batch 6 — dmss solo (Dahua DMSS has 6 @artifact_processor functions). Same pattern: 4-arg → def fn(context), context.get_relative_path() on the path column / source return.

  • get_dmss_mediaFile Path column (full path) + dirname source.
  • get_dmss / get_dmss_info / get_dmss_sensors / get_dmss_cloud / get_dmss_notifications — each returns a full source_path (db path), now relativized.

Logic unchanged; dropped the # pylint: disable=W0613 header. pylint 10.00, all 6 context form, imports clean, 7 get_relative_path applications. 20 of 28 done.

Batch 6 (solo). Dahua DMSS has 6 @artifact_processor functions; get_dmss_media
has a 'File Path' data column (full path -> get_relative_path), the other 5
return a full source_path (db path) now relativized too. All 4-arg -> context
form; logic unchanged; dropped the W0613 disable header. pylint 10.00.
@abrignoni abrignoni merged commit 35fb57c into main Jun 24, 2026
2 checks passed
@abrignoni abrignoni deleted the context-retrofit-batch6 branch June 24, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant